Ext.define('DocMap.controller.MainController',{
	extend:'Ext.app.Controller',
	views : ['Panel_01','Panel_02','Panel_03'],
	alias:'controller.mainpanel',
	refs:[{
		ref:'panel_01',
		selector:'panel_01'
	}],
	init:function(){
		this.control({
			'panel_01 button[id=nextId]':{
				click:this.onMeClick
			}
		});
	},
	onMeClick:function(c,r){
		// Ext.require('DocMap.view.DemoWinow');
		// this.getApplication().getController('Panel_01Controller');
		if (!Ext.ClassManager.isCreated('DemoWindowController')) {
			this.getApplication().getController('DemoWindowController');
		}
		var win = Ext.widget('demowindow');
		win.show();
	}
});
